#encoding=utf8
import os,sys,time
import socket
import hashlib

UserName = "geminiblue1@qq.com"
UserEmail = "490997183dsfdsfdsf@qq.com"
UserPass = "456789"
NewUserPass = "1234586"
Login_Command = "UL#1#%s#%s" %( UserName,UserPass )
Reg_Command = "UR#1#%s#%s" %( UserEmail,UserPass )
#Change_Password_Command = "UPM#1#4#%s#%s"%(OldPass,NewUserPass)
Change_Password_Command = "UIM#2#10#孙科#20#浙江#杭州#w网版王八"
cg_Password_command = "UPM#3#%s#%s#%s" %(10,UserPass,NewUserPass)
get_room_list = "RI#3#2#0#101"
if "__main__" == __name__:  
        try:
    		sock = socket.socket(socket.AF_INET, socket.SOCK_STREAM);  
    		
    		sock.connect(('localhost', 12000));  
    		#登陆
    		
    		sock.send(Login_Command+"\r\n");  
    		szBuf = sock.recv(1024);  
    		print("Login： " + szBuf);

        except Exception,e:
            print str(e);
		
